<template>
	<el-row>
		<el-col :span="3" class="menu">
			<section class="title">
				<img src="@/assets/vue.svg" alt="" />
				<h5>管理系统</h5>
			</section>
			<menu-vue class="menu-content" />
		</el-col>
		<el-col :span="21" class="right">
			<section class="header">
				<header-vue />
			</section>
			<section class="content">
				<router-view />
			</section>
		</el-col>
	</el-row>
</template>

<script setup>
import menuVue from '@/components/menu/index.vue'
import headerVue from '@/components/header/index.vue'
</script>

<style scoped>
.title {
	height: 60px;
	line-height: 80px;
	font-size: 24px;
	text-align: center;
	border-bottom: 1px solid #eaeaea;
	border-right: 1px solid #eaeaea;
	display: flex;
	justify-content: center;
	align-items: center;
}
.title h5 {
	margin-bottom: 0;
	margin-left: 6px;
}
.menu {
	height: 100vh;
	overflow: hidden;
}
.menu-content {
	height: calc(100vh - 60px);
	overflow-y: auto;
}
.right {
	background: #efefef;
}
.header {
	height: 60px;
	background: #ffffff;
}
.content {
	box-sizing: border-box;
	background: #ffffff;
	margin: 10px auto;
	width: calc(100% - 20px);
	height: calc(100vh - 80px);
	border-radius: 8px;
	box-shadow: 0 0 8px rgba(100, 100, 100, 0.1);
}
@media screen and (max-width: 1300px) {
	.title h5 {
		display: none;
	}
}
</style>
